/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.irssproject.app.quartz;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 *
 * @author adria
 */
public class ClusteringJob extends QuartzJobBean {

    private ClusteringTask clusteringTask;

    public void setClusteringTask(ClusteringTask clusteringTask) {
        this.clusteringTask = clusteringTask;
    }

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {

        clusteringTask.clusteringProcess();

    }
}
